﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GuanYijia.DoMain
{
    /// <summary>
    /// 产品价格扩展
    /// </summary>
    public class Product_Price
    {
        /// <summary>
        /// 产品价格编号
        /// </summary>
        [Key]
        public int priceid { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? productid { get; set; }
        /// <summary>
        /// 商品条码
        /// </summary>
        [StringLength(200)]
        public string? bar_code { get; set; }
        /// <summary>
        /// 商品单位
        /// </summary>
        [StringLength(100)]
        public string? commodity_unit { get; set; }
        /// <summary>
        /// 多属性
        /// </summary>
        [StringLength(500)]
        public string? sku { get; set; }
        /// <summary>
        /// 采购价格
        /// </summary>
        [Column(TypeName = "decimal(24,2)")]
        public decimal? purchase_decimal { get; set; }
        /// <summary>
        /// 零售价格
        /// </summary>
        [Column(TypeName = "decimal(24,2)")]
        public decimal? commodity_decimal { get; set; }
        /// <summary>
        /// 销售价格
        /// </summary>
        [Column(TypeName = "decimal(24,2)")]
        public decimal? wholesale_decimal { get; set; }
        /// <summary>
        /// 最低售价
        /// </summary>
        [Column(TypeName = "decimal(24,2)")]
        public decimal? low_decimal { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? create_time { get; set; }
        /// <summary>
        /// 创建人编码
        /// </summary>
        [StringLength(200)]
        public string? create_serial { get; set; }
        /// <summary>
        /// 更新人编码
        /// </summary>
        [StringLength(200)]
        public string? update_serial { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? update_time { get; set; }
        /// <summary>
        /// 租户id
        /// </summary>
        public int? tenant_id { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool? delete_flag { get; set; }
    }
}
